package main

//valid-anagram
func isAnagram(s string, t string) bool {
	if len(s) != len(t) {
		return false
	}
	smp, tmp := make(map[byte]int), make(map[byte]int)
	for i := 0; i < len(s); i++ {
		smp[s[i]]++
		tmp[t[i]]++
	}
	for k := range smp {
		if smp[k] != tmp[k] {
			return false
		}
	}
	return true
}
